<?php
/**
 * --------------------------------------------------------------------
 * 后台控制器
 * --------------------------------------------------------------------
 * @author  Midnight,  yangyunzhou@foxmail.com
 * --------------------------------------------------------------------
 * @copyright  Midnight Studio
 * --------------------------------------------------------------------
 */
class AdminBaseAction extends PublicBaseAction {

	/**
	 * --------------------------------------------
	 * 构造方法
	 * --------------------------------------------
	 * @author  Midnight,  yangyunzhou@foxmail.com
	 */
	public function __construct() {
		parent::__construct();
		// 后台模板布局缓存时间
		$this->assign('tpl_cache_date',30);
		if(!$this->get_admin_state()) {
			$this->redirect('Public/login',array('referer'=>base64_encode($this->referer())));
		} else {	//$this->assign('administrator', $this->administrator);
		}
	}
}